package eventservice;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import ca.ets.osgi.eventinterface.IEventInscription;

public class Activator implements BundleActivator {

	/*
	 * (non-Javadoc)
	 * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
	 */
	public void start(BundleContext context) throws Exception {
		IEventInscription<?> service = new EventService();
		context.registerService(IEventInscription.class.getName(), service, null);
		System.out.println("IEventInscription was registered");
		
	}

	/*
	 * (non-Javadoc)
	 * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
	 */
	public void stop(BundleContext context) throws Exception {
	}

}
